package com.qianfeng.smartplatform.mapper;/*
 *@Description:
 *@author:赵健
 *@Date:zjzzz 2022/9/9 9:10
 */

import com.qianfeng.smartplatform.pojo.SysDevice;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

@Repository
public interface DeviceMapper {
    @Select("SELECT * FROM sys_device WHERE device_id= #{id} ")
    SysDevice findByDeviceId(String id);

    void bindDevice(SysDevice sysDevice);

    int updateDeviceStatus(@Param("deviceId") String deviceId, @Param("status") int status);
}
